function onComplete(responseText, responseXML)
{
  mainNode = responseXML.documentElement;
  imie = mainNode.firstChild.nextSibling.firstChild.nodeValue;
  nazwisko = mainNode.lastChild.previousSibling.firstChild.nodeValue;
  
  str = "Odczytane imię: " + imie + "<br>";
  str += "Odczytane nazwisko: " + nazwisko;
  
  var div = document.getElementById("dataDiv");
  div.innerHTML = str;
}